package org.xserver.component.core;

import java.util.Map;

import org.jboss.netty.channel.ChannelPipelineFactory;

import org.xserver.component.core.Request.RequestType;

/**
 * Manage all xserver support {@link Request.RequestType}.
 *
 * @author idoldefine
 * @since 2016/12/20
 */
public class XServerHttpFactoryManager {
	private Map<RequestType, ChannelPipelineFactory> xserverHttpFactoryMap;

	public Map<RequestType, ChannelPipelineFactory> getXserverHttpFactoryMap() {
		return xserverHttpFactoryMap;
	}

	public void setXserverHttpFactoryMap(Map<RequestType, ChannelPipelineFactory> xserverHttpFactoryMap) {
		this.xserverHttpFactoryMap = xserverHttpFactoryMap;
	}

	public ChannelPipelineFactory getPiplelineFactory(RequestType requestType){
		return xserverHttpFactoryMap.get(requestType);
	}
}
